<?php
include_once "../soar/soar.inc";

function main($soar)
{/*{{{*/
    $soar->begin();     // unnecessary in lite
    $request="";
    para::put_item($request, "@00000000001");
    if(($res=$soar->call("HELLO", $request, $respond)) == false)
    {
        echo "call svcenv fail\n";
        $soar->abort(); // unnecessary in lite
        return -1;
    }
    echo "$respond\n";
    $curr=0;
    while(!is_null($item=para::get_item($respond, $curr)))
    {
        echo "$item\n";
    }
    $soar->commit();    // unnecessary in lite

    return 0;
}/*}}}*/

$soar=new soar();
main($soar);
$soar->close();
?>
